package ZRH;

public class zrh05 {
    public static void main(String[] args) {
        System.out.println(getSxh(123));
        System.out.println(getSxh(153));
    }


    public static boolean getSxh(int num) {
        //提取num的个十百位的数字
        int ge = num % 10;
        int shi = num / 10 % 10;
        int bai = num / 100 % 10;
        if (ge * ge * ge + shi * shi * shi + bai * bai * bai == num) {
            return true;
        } else {
            return false;
        }
    }
}
